//
//  TestMap.m
//  HeroNuts
//
//  Created by Gelford on 11-5-12.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "TestMap.h"
#import "HNGroundLogic.h"
#import "HNLogicPosition.h"

@implementation TestMap

#if USE_APPLICATION_UNIT_TEST     // all code under test is in the iPhone Application

- (void)testAppDelegate {
    
    id yourApplicationDelegate = [[UIApplication sharedApplication] delegate];
    STAssertNotNil(yourApplicationDelegate, @"UIApplication failed to find the AppDelegate");
    
}

#else                           // all code under test must be linked into the Unit Test bundle

- (void) setUp
{
	
}

- (void) tearDown
{
	
	
}

- (void)testMath {
    
    STAssertTrue((1+1)==2, @"Compiler isn't feeling well today :-(" );
    
}

- (void)testArea {
  CGPoint aPoint = CGPointMake(1, 1);
  NSMutableArray *arrayOfArea = [[HNGroundLogic sharedGroundLogic] getWalkAreaFrom:aPoint steps:1];
  for (HNLogicPosition* p in arrayOfArea) {
    NSLog(@"%f,%f",p.x,p.y);
  }
  
  STAssertTrue((1+1)==2, @"Compiler isn't feeling well today :-(" );
}

#endif

@end
